//
//  CLrightImageTextField.h
//  greatControl
//
//  Created by Phyllis Hu on 15/10/21.
//  Copyright (c) 2015年 dingyi. All rights reserved.
//  有边有文字和图片的情况，文字在图片的前面

#import "CLBaseTextField.h"
#import "CLUIbutton.h"
@class CLRightImageTextField;

@protocol CLRightImageTextFieldDelegate <NSObject>
/**
 *  点击了右边按钮的事件
 */
- (void) RightImageTextFieldBtnOnClick:(CLRightImageTextField*) rightImageTextField;
@end

@interface CLRightImageTextField : CLBaseTextField
@property (nonatomic, strong) CLUIbutton *rightBtn;
@property (nonatomic, strong) UILabel    *leftLabel;
@property (nonatomic, weak) id<CLRightImageTextFieldDelegate> btnDelegate;
/**
 *  右边按钮的文字尺寸
 */
@property (nonatomic,assign) CGFloat btnFont;
/**
 *  整行都具备右边按钮点击事件
 */
@property (nonatomic,assign) BOOL  allClick;

- (id)initWithFrame:(CGRect)frame rightNorImage:(NSString *) rightNorImage rightHighlightImage:(NSString *)rightHighlightImage rightTitle:(NSString*) rightTitle;

/**
 *  设置右边按钮的文字
 */
- (void) setRightBtnTitle:(NSString*) title;



@end
